package cn.com.nes.site.entity.vo.workOrder;

import cn.com.nes.site.entity.vo.BaseVO;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 约定上门时间
 */
@Data
public class UpdateDoorTimeVo extends BaseVO {

    /**
     * 工单id
     */
    @NotNull(message = "工单id")
    private Long workOrderId;

    /**
     * 约定上门时间-开始
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "约定上门时间-开始")
    private Date agreedDoorstepTimeStart;

    /**
     * 约定上门时间-结束
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "约定上门时间-结束")
    private Date agreedDoorstepTimeEnd;

}
